package cn.mafangui.hotel.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class Order extends HotelDoCommon implements Serializable {
    private static final long serialVersionUID = -4304622962631466072L;
    private Integer orderId;

    private Integer orderTypeId;

    private String orderType;

    private Integer userId;

    private String name;

    private String phone;

    @ApiModelProperty("房间类型id")
    private Integer roomTypeId;

    private String roomType;

    private String roomNumber;


    private Date orderDate;

    private Integer orderDays;

    private Integer orderStatus;

    private Double orderCost;

    public Order(Integer orderTypeId, String orderType, Integer userId, String name, String phone, Integer roomTypeId, String roomType, Date orderDate, Integer orderDays, Integer orderStatus, Double orderCost) {
        this.orderTypeId = orderTypeId;
        this.orderType = orderType;
        this.userId = userId;
        this.name = name;
        this.phone = phone;
        this.roomTypeId = roomTypeId;
        this.roomType = roomType;
        this.orderDate = orderDate;
        this.orderDays = orderDays;
        this.orderStatus = orderStatus;
        this.orderCost = orderCost;
    }

    public Order(Integer orderId, Integer orderStatus) {
        this.orderId = orderId;
        this.orderStatus = orderStatus;
    }

}
